<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>Title</title>
    <style>
        body{
            padding: 0;
            margin: 0;
        }
        ul,li{
            list-style:none;
        }
        img {
            border: 0;
            vertical-align: middle;
        }
        .box1{
            display: none;
            height: 300px;
            width: 300px;
            /*border: 1px solid #000;*/
            margin: 100px auto;
        }
        ul{
            width: 100%;
            height: 100%;
            position: relative;
            left: 0;
            top: 0;
            transform-style: preserve-3d;
            transform:rotateX(0deg) rotateY(0deg) ;
            /*transform: rotateY(-23deg) rotateX(-18deg);*/
            animation: run 5s linear infinite;
        }
        li{
            height: 200px;
            width: 200px;
            position: absolute;
            font-size:70px;
        }
        li:nth-child(1){
            background-color: #03F7E8;
            transform: translateZ(120px);
        }
        li:nth-child(2){
            background-color: #FA03CE;
            transform: rotateX(90deg) translateZ(120px);
        }
        li:nth-child(3){
            background-color: #AD5DCB;
            transform: rotateX(180deg) translateZ(120px);
        }
        li:nth-child(4){
            background-color: #6CE064;
            transform: rotateX(270deg) translateZ(120px);
        }
        li:nth-child(5){
            background-color: #908E90;
            transform: rotateY(90deg) translateZ(120px);
        }
        li:nth-child(6){
            background-color: #4D36D8;
            transform: rotateY(270deg) translateZ(120px);
        }

        @keyframes move {
            from {
                transform: rotate3d(0,0,0,0deg);
            }
            to{
                transform: rotate3d(1,1,1,360deg);
            }
        }
        @keyframes run{
            0%{ transform:rotateX(0deg) rotateY(0deg)/* rotateZ(0deg)*/}

            100%{ transform:rotateX(360deg) rotateY(360deg)/* rotateZ(360deg)*/}
        }

        li {
            background-image: url("img.jpg");
            background-size: cover;
            opacity: 0.7;
        }

        ul:hover {
            display: none;
        }
        .box2{
            width: 200px;
            height: 200px;
            margin: 100px auto;
            font-size: 0;
        }
        .box2 img:nth-child(1){
            transform: rotate(-65deg) translatey(-105px);
        }
        .box2 img:nth-child(2){
            transform: rotate(-157deg) translatey(95px);
        }
        .box2 img:nth-child(3){
            transform: rotate(75deg) translatey(-97px);
        }
        .box2 img:nth-child(4){
            transform: rotate(-139deg) translatey(-149px);
        }
        .box2 img:nth-child(5){
            transform: rotate(-139deg) translatey(-149px);
        }
        .box2 img:nth-child(6){
            transform: rotate(0deg) translatey(0px);
        }
        .box2 img:nth-child(7){
            transform: rotate(106deg) translatey(-126px);
        }
        .box2 img:nth-child(8){
            transform: rotate(0deg) translatey(0px);
        }
        .box2 img:nth-child(9){
            transform: rotate(136deg) translatey(125px);
        }
        .box2 img:nth-child(10){
            transform: rotate(168deg) translatey(-101px);
        }
        .box2 img:nth-child(11){
            transform: rotate(118deg) translatey(-114px);
        }
        .box2 img {
            transition: all 2s ease-in-out;
        }
        .box2:hover img{
            transform: translate(0, 0) rotate(0deg);
        }
    </style>
</head>
<body>
<div class="box1">
    <ul>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
    </ul>
</div>
<div class="box2">
    <img src="./1_r1_c1.jpg" alt="">
    <img src="./1_r1_c3.jpg" alt="">
    <img src="./1_r1_c4.jpg" alt=""><br>
    <img src="./1_r2_c1.jpg" alt="">
    <img src="./1_r2_c3.jpg" alt="">
    <img src="./1_r2_c4.jpg" alt=""><br>
    <img src="./1_r3_c1.jpg" alt="">
    <img src="./1_r3_c3.jpg" alt="">
    <img src="./1_r3_c4.jpg" alt="">
</div>
</body>
</html>